package cn.qiyu5522.tk_ems.entity.dto;

import cn.qiyu5522.tk_ems.entity.Job;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @ClassName JobDTO
 * @Description TODO
 * @Author Tonkey
 * @Date 2023/2/20 10:38
 */
@Data
@ApiModel("工作职位DTO对象")
public class JobDTO {
    @ApiModelProperty(value = "职位编号")
    @NotNull(message = "职位编号不能为空",groups = {Job.Update.class})
    private Integer id;

    @ApiModelProperty(value = "职位名称")
    @NotBlank(message = "职位名称不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String name;


    @ApiModelProperty(value = "职位分类编号")
    @NotNull(message = "职位分类编号不能为空",groups = {Job.Insert.class,Job.Update.class})
    private Long jobCategoryId;

    @ApiModelProperty(value = "职位分类名称")
    @NotNull(message = "职位分类不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String jobCategoryName;

    @ApiModelProperty(value = "月薪")
    @NotBlank(message = "岗位月薪不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String monthSalary;

    @ApiModelProperty(value = "工作地点")
    @NotBlank(message = "工作地点不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String workAddress;

    @ApiModelProperty(value = "工作地点编号")
    @NotNull(message = "工作地点编号不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String workAddressId;

    @ApiModelProperty(value = "职位描述")
    @NotBlank(message = "职位描述不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String description;

    @ApiModelProperty(value = "工作福利")
    private String welfare;

    @ApiModelProperty(value = "公司名称")
    @NotNull(message = "公司名称不能为空",groups = {Job.Insert.class,Job.Update.class})
    private String companyName;

    @ApiModelProperty(value = "公司编号")
    @NotNull(message = "公司编号不能为空",groups = {Job.Insert.class,Job.Update.class})
    private Long companyId;

    @ApiModelProperty(value = "要求学历")
    @NotNull(message = "要求学历不能为空",groups = {Job.Insert.class,Job.Update.class})
    private Integer requireEduId;

    @ApiModelProperty(value = "要求工作经验")
    @NotNull(message = "要求工作经验不能为空",groups = {Job.Insert.class,Job.Update.class})
    private Integer requireExperienceId;

    @ApiModelProperty(value = "发布时间-起始")
    private LocalDateTime createTimeStart;
    @ApiModelProperty(value = "发布时间-截止")
    private LocalDateTime createTimeEnd;
}
